package com.wang.jmonkey.modules.region.model.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.wang.jmonkey.common.model.BaseEntity;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 入区登记表
 * </p>
 *
 * @author tianchao
 * @since 2020-04-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class RegionInOut extends BaseEntity<RegionInOut> {

    private static final long serialVersionUID = 1L;

    /**
     * 登记id
     */
    private String id;
    /**
     * 嫌疑人姓名
     */
    private String name;
    /**
     * 1-男,0-女
     */
    private Integer gender;
    /**
     * 父区域id
     */
    private Date birthday;
    /**
     * 证件类型 1-身份证 2-护照
     */
    private Integer type;
    /**
     * 号码
     */
    private String card;
    /**
     * 职务
     */
    private String duty;
    /**
     * 职级
     */
    private String position;
    /**
     * 证件照片
     */
    private String img;
    /**
     * 嫌疑人id
     */
    private String suspectId;
    /**
     * 事由
     */
    private String reason;
    /**
     * 留置室id
     */
    private String roomId;
    /**
     * 储物柜(region_store表) id
     */
    private String regionStoreId;
    /**
     * 留置室名字
     */
    private String roomName;
    /**
     * 办案人名字-逗号分割
     */
    private String handingPersonNames;
    /**
     * 预约时间
     */
    private Date appointmentTime;
    /**
     * 入区时间
     */
    private Date inTime;
    /**
     * 出区时间
     */
    private Date outTime;
    /**
     * 1-已预约 2-已入区 3-已出区
     */
    private Integer status;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
